<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title></title>
    <style>
    * {
      padding: 0;
      margin: 0;
      list-style: none;
    }
    .father {
      width: 1300px;
      height: 633px;
      background-color: pink;
      display: flex;
      justify-content: space-between;
    }
    .left {
      width: 300px;
      height: 633px;
      background-color: red;
    }
    .right {
      width: 967px;
      height: 633px;
      background-color: green;
    }
    .right ul {
      height: 633px;
      display: flex;
      flex-wrap: wrap;
      /* 对每行生效 */
      /* 每一行中多个弹性盒子的水平布局 */
      justify-content: space-between;
      /* align-content只对多行时生效，能很好地实现顶底两行紧靠终端的between效果 */
      /* align-content: 没有默认值。因为如果有默认值，align-items就不会生效; */
      /* 多行时，多行弹性盒子的垂直布局 */
      align-content: space-between;
      /* 单行时生效，多行无align-content也生效 */
      /* 弹性盒子没高度时，默认stretch；弹性盒子有高度时，默认flex-start靠上效果 */
      /* 每一行中，所有弹性盒子的相同的垂直布局 */
      align-items: center;
    }
    .right li {
      width: 300px;
      height: 300px;
      background-color: orange;
    }
    </style>
    <link href="css/style.css" rel="stylesheet">
  </head>
  <body>
  <div class="father">
      <div class="left"></div>
      <div class="right">
        <ul>
          <li>1</li>
          <li>2</li>
          <li>3</li>
          <li>4</li>
          <li>5</li>
          <li>6</li>
        </ul>
      </div>
    </div>
    <h2>
    父级没设置高度，align-content不会生效
    </h2>
  </body>
</html>
